package com.logictech.lims.entity;

import java.util.Date;

import org.jeecgframework.p3.core.utils.persistence.Entity;

/**
 * 描述：</b>PreparationInventory:试液信息维护<br>
 * 
 * @author guoqi
 * @since：2017年03月27日 14时10分23秒 星期一
 * @version:1.0
 */
public class PreparationInventory implements Entity<Integer> {
	private static final long serialVersionUID = 1L;

	/**
	 * 试液库存id
	 */
	private Integer id;
	/**
	 * 试液类型id
	 */
	private Integer preparationTypeId;
	/**
	 * 配制日期
	 */
	private String configurationDate;
	/**
	 * 有效日期
	 */
	private String effectiveDate;
	/**
	 * 条形码编号
	 */
	private String barCode;
	/**
	 * 状态
	 */
	private String status;
	/**
	 * 状态
	 */
	private String printStatus;
	/**
	 * 创建者Id
	 */
	private String createUser;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新者Id
	 */
	private String updateUser;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	
	private String statusVal;

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getPreparationTypeId() {
		return this.preparationTypeId;
	}

	public void setPreparationTypeId(Integer preparationTypeId) {
		this.preparationTypeId = preparationTypeId;
	}

	public String getConfigurationDate() {
		return this.configurationDate;
	}

	public void setConfigurationDate(String configurationDate) {
		this.configurationDate = configurationDate;
	}

	public String getEffectiveDate() {
		return this.effectiveDate;
	}

	public void setEffectiveDate(String effectiveDate) {
		this.effectiveDate = effectiveDate;
	}

	public String getBarCode() {
		return this.barCode;
	}

	public void setBarCode(String barCode) {
		this.barCode = barCode;
	}

	public String getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdateUser() {
		return this.updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	/**
	 * 试液类型
	 */
	private String preparationType;

	public String getPreparationType() {
		return preparationType;
	}

	public void setPreparationType(String preparationType) {
		this.preparationType = preparationType;
	}

	public String getPrintStatus() {
		return printStatus;
	}

	public void setPrintStatus(String printStatus) {
		this.printStatus = printStatus;
	}

	public String getStatusVal() {
	    if("1".equals(status)){
	    	this.statusVal = "配制完成";
	    } else if("2".equals(status)){
	    	this.statusVal = "使用完毕";
	    } else if("3".equals(status)){
	    	this.statusVal = "丢弃";
	    }
	    return statusVal;
	}

	public void setStatusVal(String statusVal) {
		this.statusVal = statusVal;
	}
	@Override
	public String toString() {
		return "[条形码编号=" + barCode + ", 试液类型=" + preparationType + ", 配制日期=" + configurationDate + ", 有效日期="
				+ effectiveDate + ", 状态=" + getStatusVal() + "]";
	}

}
